﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using SimpleDbBrowser.ViewModel;
using SimpleDbBrowser.View.ViewContainers;
using SimpleDbBrowser.View.Views;
using System.Diagnostics;

namespace SimpleDbBrowser.View.Utility
{
    internal class OptionDialogPresenter : IDialogPresenter
    {
        public OptionDialogPresenter(Window owner)
        {
            this.Owner = owner;
        }

        public Window Owner { get; set; }

        public bool? ShowDialog()
        {
            var vc = new DialogViewContainer() { Owner = this.Owner };
            vc.AssignView(new OptionsViewModel(), new OptionsView());
            return vc.ShowDialog();
        }
    }
}
